package com.example.petstoreservice.mapper;

import com.example.petstoreservice.entity.Product;
import com.example.petstoreservice.entity.Supplier;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SupplierMapper {
    List<Supplier> getAll();
    int delete(Long id);
    int update(Supplier supplier);
    List<Supplier> search(String p);
    int insert(Supplier supplier);
    Supplier getById(Long supplierId);
    List<Supplier> findNearbyShops(double lng,double lat);
}
